package com.jlkf.service;

import java.security.NoSuchAlgorithmException;
import java.security.spec.InvalidKeySpecException;
import java.util.List;
import java.util.Map;

import com.jlkf.pojo.TblUser;
import com.platform.server.response.response.pojo.ReturnData;

public interface UserService {

	 ReturnData loginUser(String json);

	 ReturnData sendCode(String phone, Integer type);

	 ReturnData regisUser(String json);

	 ReturnData codeLogin(String phone, String code);

	 ReturnData forgetPassWord(String json);

	 ReturnData authorizedLogin(String json);

	 ReturnData isBind(String authorizedInfo, Integer type);

	 ReturnData levelOneSort(Integer pageSize, Integer pageNumber);

	 ReturnData updateUserInfo(String json);

	 ReturnData userInfo(Long userId);
	 
	 ReturnData getBalance(Long userId);
	 
	 ReturnData getVIP(Long userId);
	 
	 ReturnData getBalanceList(Long userId,Integer pageNumber,Integer pageSize);
	 
	 ReturnData enjoyLink(Long userId);
	 
	 ReturnData updatePwd(String json);
	 
	 ReturnData setPayPwd(String json);
	 
	 ReturnData updatePayPwd(String json);
	 
	 ReturnData forgetPayPwd(String json) throws NoSuchAlgorithmException, InvalidKeySpecException ;
	 
	 ReturnData updatePhone(String json);
	 
	 ReturnData isSetPayPwd(Long gId);
	 
	 ReturnData bandThird(String json); //绑定第三方
	 
	 ReturnData getWeixinInfo(String code,Integer type); //微信登录获取第三方信息
	 
	 //后台管理
	 List<TblUser> getUserInfo(Map<String, Object> map);
	 
	 int updateStatus(Map<String, Object> map);
	 
	 TblUser getDetail(Long gId);
	 
	 List<TblUser> getVipUserInfo(Map<String, Object> map);
	 
	 /**
	  * 更新用户mac地址
	  */
	 ReturnData updateMac(Integer userid,String mac);
}
